home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / emacs-complete / fsf / emacs / info / emacs-19 < prev    next >
Encoding:
GNU Info File  |  1994-10-06  |  40.6 KB  |  1,159 lines

  1. This is Info file ../info/emacs, produced by Makeinfo-1.54 from the
  2. input file emacs.texi.
  3.  
  4. 
  5. File: emacs,  Node: General Variables,  Next: Misc Variables,  Up: Environment
  6.  
  7. General Variables
  8. -----------------
  9.  
  10. `AUTHORCOPY'
  11.      The name of a file used to archive news articles posted with the
  12.      GNUS package.
  13.  
  14. `CDPATH'
  15.      Used by the `cd' command.
  16.  
  17. `DOMAINNAME'
  18.      The name of the internet domain that the machine running Emacs is
  19.      located in.  Used by the GNUS package.
  20.  
  21. `EMACSDATA'
  22.      Used to initialize the variable `data-directory' used to locate the
  23.      architecture-independent files that come with Emacs.  Setting this
  24.      variable overrides the setting in `paths.h' when Emacs was built.
  25.  
  26. `EMACSLOADPATH'
  27.      A colon-separated list of directories from which to load Emacs Lisp
  28.      files.  Setting this variable overrides the setting in `paths.h'
  29.      when Emacs was built.
  30.  
  31. `EMACSLOCKDIR'
  32.      The directory that Emacs places lock files--files used to protect
  33.      users from editing the same files simultaneously.  Setting this
  34.      variable overrides the setting in `paths.h' when Emacs was built.
  35.  
  36. `EMACSPATH'
  37.      The location of Emacs-specific binaries.  Setting this variable
  38.      overrides the setting in `paths.h' when Emacs was built.
  39.  
  40. `ESHELL'
  41.      Used for shell-mode to override the `SHELL' environment variable.
  42.  
  43. `HISTFILE'
  44.      The name of the file that shell commands are saved in between
  45.      logins.  This variable defaults to `~/.history' if you use (t)csh
  46.      as shell, to `~/.bash_history' if you use bash, to `~/.sh_history'
  47.      if you use ksh, and to `~/.history' otherwise.
  48.  
  49. `HOME'
  50.      The location of the user's files in the directory tree; used for
  51.      expansion of file names starting with a tilde (`~').  On MS-DOS, it
  52.      defaults to the directory from which Emacs was started, with `/bin'
  53.      removed from the end if it was present.
  54.  
  55. `HOSTNAME'
  56.      The name of the machine that Emacs is running on.
  57.  
  58. `INCPATH'
  59.      A colon-separated list of directories.  Used by the `complete'
  60.      package to search for files.
  61.  
  62. `INFOPATH'
  63.      A colon separated list of directories holding info files.  Setting
  64.      this variable overrides the setting in `paths.el' when Emacs was
  65.      built.
  66.  
  67. `LOGNAME'
  68.      The user's login name.  See also `USER'.
  69.  
  70. `MAIL'
  71.      The name of the user's system mail box.
  72.  
  73. `MAILRC'
  74.      Name of file containing mail aliases.  This defaults to
  75.      `~/.mailrc'.
  76.  
  77. `MH'
  78.      Name of setup file for the mh system.  This defaults to
  79.      `~/.mh_profile'.
  80.  
  81. `NAME'
  82.      The real-world name of the user.
  83.  
  84. `NNTPSERVER'
  85.      The name of the news server.  Used by the mh and GNUS packages.
  86.  
  87. `ORGANIZATION'
  88.      The name of the organization to which you belong.  Used for
  89.      setting the `Organization:' header in your posts from the GNUS
  90.      package.
  91.  
  92. `PATH'
  93.      A colon-separated list of directories in which executables reside.
  94.      (On MS-DOS, it is semicolon-separated instead.)  This variable is
  95.      used to set the Emacs Lisp variable `exec-path' which you should
  96.      consider to use instead.
  97.  
  98. `PWD'
  99.      If set, this should be the default directory when Emacs was
  100.      started.
  101.  
  102. `SAVEDIR'
  103.      The name of a directory in which news articles are saved by
  104.      default.  Used by the GNUS package.
  105.  
  106. `SHELL'
  107.      The name of an interpreter used to parse and execute programs run
  108.      from inside Emacs.
  109.  
  110. `TERM'
  111.      The name of the terminal that Emacs is running on.  The variable
  112.      must be set unless Emacs is run in batch mode.  On MS-DOS, it
  113.      defaults to `internal', which specifies a built-in terminal
  114.      emulation that handles the machine's own display.
  115.  
  116. `TERMCAP'
  117.      The name of the termcap library file describing how to program the
  118.      terminal specified by the `TERM' variable.  This defaults to
  119.      `/etc/termcap'.
  120.  
  121. `TMPDIR'
  122.      Used by the Emerge package as a prefix for temporary files.
  123.  
  124. `TZ'
  125.      This specifies the current time zone and possibly also daylight
  126.      savings information.  On MS-DOS, the default is based on country
  127.      code; see the file `msdos.c' for details.
  128.  
  129. `USER'
  130.      The user's login name.  See also `LOGNAME'.  On MS-DOS, this
  131.      defaults to `root'.
  132.  
  133. `VERSION_CONTROL'
  134.      Used to initialize the `version-control' variable (*note Backup
  135.      Names::.).
  136.  
  137. 
  138. File: emacs,  Node: Misc Variables,  Prev: General Variables,  Up: Environment
  139.  
  140. Misc Variables
  141. --------------
  142.  
  143.    These variables are used only on particular configurations:
  144.  
  145. `COMSPEC'
  146.      On MS-DOS, the name of the command interpreter to use.  This is
  147.      used to make a default value for the `SHELL' environment variable.
  148.  
  149. `NAME'
  150.      On MS-DOS, this variable defaults to the value of the `USER'
  151.      variable.
  152.  
  153. `TEMP'
  154. `TMP'
  155.      On MS-DOS, these specify the name of the directory for storing
  156.      temporary files in.
  157.  
  158. `USE_DOMAIN_ACLS'
  159.      Used for Apollo machines to enable access control lists.
  160.  
  161. `WINDOW_GFX'
  162.      Used when initializing the Sun windows system.
  163.  
  164. 
  165. File: emacs,  Node: Display X,  Next: Font X,  Prev: Environment,  Up: Command Arguments
  166.  
  167. Specifying the Display Name
  168. ===========================
  169.  
  170.    The environment variable `DISPLAY' tells all X clients, including
  171. Emacs, where to display their windows.  Its value is set up by default
  172. in ordinary circumstances, when you start an X server and run jobs
  173. locally.  Occasionally you may need to specify the display yourself; for
  174. example, if you do a remote login and want to run a client program
  175. remotely, displaying on your local screen.
  176.  
  177.    With Emacs, the main reason people change the default display is to
  178. let them log into another system, run Emacs on that system, but have the
  179. window displayed at their local terminal.  You might need to use login
  180. to another system because the files you want to edit are there, or
  181. because the Emacs executable file you want to run is there.
  182.  
  183.    The syntax of the `DISPLAY' environment variable is
  184. `HOST:DISPLAY.SCREEN', where HOST is the host name of the X Window
  185. System server machine, DISPLAY is an arbitrarily-assigned number that
  186. distinguishes your server (X terminal) from other servers on the same
  187. machine, and SCREEN is a rarely-used field that allows an X server to
  188. control multiple terminal screens.  The period and the SCREEN field are
  189. optional.  If included, SCREEN is usually zero.
  190.  
  191.    For example, if your host is named `glasperle' and your server is
  192. the first (or perhaps the only) server listed in the configuration, your
  193. `DISPLAY' is `glasperle:0.0'.
  194.  
  195.    You can specify the display name explicitly when you run Emacs,
  196. either by changing the `DISPLAY' variable, or with the option `-d
  197. DISPLAY' or `-display DISPLAY'.  These are initial options; they must
  198. come at the beginning of the command line.  *Note Initial Options::.
  199. Here is an example:
  200.  
  201.      emacs -display glasperle:0 &
  202.  
  203.    You can inhibit the direct use of X with the `-nw' option.  This is
  204. also an initial option.  This option tells Emacs to display using
  205. ordinary ASCII on its controlling terminal.
  206.  
  207.    Sometimes, security arrangements prevent a program on a remote system
  208. from displaying on your local system.  In this case, trying to run Emacs
  209. produces messages like this:
  210.  
  211.      Xlib:  connection to "glasperle:0.0" refused by server
  212.  
  213. You might be able to overcome this problem by using the `xhost' command
  214. on the local system to give permission for access from your remote
  215. machine.
  216.  
  217. 
  218. File: emacs,  Node: Font X,  Next: Colors X,  Prev: Display X,  Up: Command Arguments
  219.  
  220. Font Specification Options
  221. ==========================
  222.  
  223.    By default, Emacs displays text in the font named `9x15', which
  224. makes each character nine pixels wide and fifteen pixels high.  You can
  225. specify a different font on your command line through the option `-fn
  226. NAME'.
  227.  
  228. `-fn NAME'
  229.      Use font NAME as the default font.
  230.  
  231. `-font NAME'
  232.      `-font' is an alias for `-fn'.
  233.  
  234.    Under X, each font has a long name which consists of eleven words or
  235. numbers, separated by dashes.  Some fonts also have shorter
  236. nicknames--`9x15' is such a nickname.  You can use either kind of name.
  237. You can use wild card patterns for the font name; then Emacs lets X
  238. choose one of the fonts that match the pattern.  Here is an example,
  239. which happens to specify the font whose nickname is `6x13':
  240.  
  241.      emacs -fn "-misc-fixed-medium-r-semicondensed--13-*-*-*-c-60-iso8859-1" &
  242.  
  243. You can also specify the font in your `.Xdefaults' file:
  244.  
  245.      emacs.font: -misc-fixed-medium-r-semicondensed--13-*-*-*-c-60-iso8859-1
  246.  
  247.    A long font name has the following form:
  248.  
  249.      -MAKER-FAMILY-WEIGHT-SLANT-WIDTHTYPE-STYLE...
  250.      ...-PIXELS-HEIGHT-HORIZ-VERT-SPACING-WIDTH-CHARSET
  251.  
  252. FAMILY
  253.      This is the name of the font family-for example, `courier'.
  254.  
  255. WEIGHT
  256.      This is normally `bold', `medium' or `light'.  Other words may
  257.      appear here in some font names.
  258.  
  259. SLANT
  260.      This is `r' (roman), `i' (italic), `o' (oblique), `ri' (reverse
  261.      italic), or `ot' (other).
  262.  
  263. WIDTHTYPE
  264.      This is normally `condensed', `extended', `semicondensed' or
  265.      `normal'.  Other words may appear here in some font names.
  266.  
  267. STYLE
  268.      This is an optional additional style name.  Usually it is
  269.      empty--most long font names have two hyphens in a row at this
  270.      point.
  271.  
  272. PIXELS
  273.      This is the font height, in pixels.
  274.  
  275. HEIGHT
  276.      This is the font height on the screen, measured in printer's points
  277.      (approximately 1/72 of an inch), times ten.  For a given vertical
  278.      resolution, HEIGHT and PIXELS are proportional; therefore, it is
  279.      common to specify just one of them and use `*' for the other.
  280.  
  281. HORIZ
  282.      This is the horizontal resolution, in pixels per inch, of the
  283.      screen for which the font is intended.
  284.  
  285. VERT
  286.      This is the vertical resolution, in dots per inch, of the screen
  287.      for which the font is intended.  Normally the resolution of the
  288.      fonts on your system is the right value for your screen;
  289.      therefore, you normally specify `*' for this and HORIZ.
  290.  
  291. SPACING
  292.      This is `m' (monospace), `p' (proportional) or `c' (character
  293.      cell).  Emacs can use `m' and `c' fonts.
  294.  
  295. WIDTH
  296.      This is the average character width, in pixels, times ten.
  297.  
  298. CHARSET
  299.      This is the character set that the font depicts.  Normally you
  300.      should use `iso8859-1'.
  301.  
  302.    Use only fixed width fonts--that is, fonts in which all characters
  303. have the same width; Emacs cannot yet handle display properly for
  304. variable width fonts.  Any font with `m' or `c' in the SPACING field of
  305. the long name is a fixed width font.  Here's how to use the `xlsfonts'
  306. program to list all the fixed width fonts available on your system:
  307.  
  308.      xlsfonts -fn '*x*'
  309.      xlsfonts -fn '*-*-*-*-*-*-*-*-*-*-*-m*'
  310.      xlsfonts -fn '*-*-*-*-*-*-*-*-*-*-*-c*'
  311.  
  312. To see what a particular font looks like, use the `xfd' command.  For
  313. example:
  314.  
  315.      xfd -fn 6x13
  316.  
  317. displays the entire font `6x13'.
  318.  
  319.    While running Emacs, you can set the font of the current frame
  320. (*note Frame Parameters::.) or for a specific kind of text (*note
  321. Faces::.).
  322.  
  323. 
  324. File: emacs,  Node: Colors X,  Next: Window Size X,  Prev: Font X,  Up: Command Arguments
  325.  
  326. Window Color Options
  327. ====================
  328.  
  329.    On a color display, you can specify which color to use for various
  330. parts of the Emacs display.  To find out what colors are available on
  331. your system, look at the `/usr/lib/X11/rgb.txt' file.  If you do not
  332. specify colors, the default for the background is white and the default
  333. for all other colors is black.  On a monochrome (black and white)
  334. display, the foreground is black, the background is white, and the
  335. border is grey.
  336.  
  337.    Here is a list of the options for specifying colors:
  338.  
  339. `-fg COLOR'
  340.      Specify the foreground color.
  341.  
  342. `-bg COLOR'
  343.      Specify the background color.
  344.  
  345. `-bd COLOR'
  346.      Specify the color of the border of the X window.
  347.  
  348. `-cr COLOR'
  349.      Specify the color of the Emacs cursor which indicates where point
  350.      is.
  351.  
  352. `-ms COLOR'
  353.      Specify the color for the mouse cursor when the mouse is in the
  354.      Emacs window.
  355.  
  356. `-r'
  357.      Reverse video--swap the foreground and background colors.
  358.  
  359.    For example, to use a coral mouse cursor and a slate blue text
  360. cursor, enter:
  361.  
  362.      emacs -ms coral -cr 'slate blue' &
  363.  
  364.    You can reverse the foreground and background colors through the
  365. `-r' option or with the X resource `reverseVideo'.
  366.  
  367. 
  368. File: emacs,  Node: Window Size X,  Next: Borders X,  Prev: Colors X,  Up: Command Arguments
  369.  
  370. Options for Window Geometry
  371. ===========================
  372.  
  373.    The `-geometry' option controls the size and position of the initial
  374. Emacs frame.  Here is the format for specifying the window geometry:
  375.  
  376. `-geometry WIDTHxHEIGHT{+-}XOFFSET{+-}YOFFSET'
  377.      Specify window size WIDTH and HEIGHT (measured in character
  378.      columns and lines), and positions XOFFSET and YOFFSET (measured in
  379.      pixels).
  380.  
  381. A positive XOFFSET specifies the distance from the left side of the
  382. screen, a negative XOFFSET specifies the distance from the right side
  383. of the screen, a positive YOFFSET specifies the distance from the top
  384. of the screen, and a negative YOFFSET specifies the distance from the
  385. bottom of the screen.
  386.  
  387.    Emacs uses the same units as `xterm' does to interpret the geometry.
  388. The WIDTH and HEIGHT are measured in characters, so a large font
  389. creates a larger frame than a small font.  The XOFFSET and YOFFSET are
  390. measured in pixels.
  391.  
  392.    Since the mode line and the echo area occupy the last 2 lines of the
  393. frame, the height of the initial text window is 2 less than the height
  394. specified in your geometry.  In non-toolkit versions of Emacs, the menu
  395. bar also takes one line of the specified number.
  396.  
  397.    You do not have to specify all of the fields in the geometry
  398. specification.
  399.  
  400.    If you omit both XOFFSET and YOFFSET, the window manager decides
  401. where to put the Emacs frame, possibly by letting you place it with the
  402. mouse.  For example, `164x55' specifies a window 164 columns wide,
  403. enough for two ordinary width windows side by side, and 55 lines tall.
  404.  
  405.    The default width for Emacs is 80 characters and the default height
  406. is 40 lines.  You can omit either the width or the height or both.  If
  407. you start the geometry with an integer, Emacs interprets it as the
  408. width.  If you start with an `x' followed by an integer, Emacs
  409. interprets it as the height.  Thus, `81' specifies just the width;
  410. `x45' specifies just the height.
  411.  
  412.    If you start with `+' or `-', that introduces an offset, which means
  413. both sizes are omitted.  Thus, `-3' specifies the XOFFSET only.  (If
  414. you give just one offset, it is always XOFFSET.)  `+3-3' specifies both
  415. the XOFFSET and the YOFFSET, placing the frame near the bottom left of
  416. the screen.
  417.  
  418.    You can specify a default for any or all of the fields in
  419. `.Xdefaults' file, and then override selected fields through a
  420. `-geometry' option.
  421.  
  422. 
  423. File: emacs,  Node: Borders X,  Next: Icons X,  Prev: Window Size X,  Up: Command Arguments
  424.  
  425. Internal and External Borders
  426. =============================
  427.  
  428.    An Emacs frame has an internal border and an external border.  The
  429. internal border is an extra strip of the background color around all
  430. four edges of the frame.  Emacs itself adds the internal border.  The
  431. external border is added by the window manager outside the internal
  432. border; it may contain various boxes you can click on to move or iconify
  433. the window.
  434.  
  435. `-ib WIDTH'
  436.      Specify WIDTH as the width of the internal border.
  437.  
  438. `-bw WIDTH'
  439.      Specify WIDTH as the width of the main border.
  440.  
  441.    When you specify the size of the frame, that does not count the
  442. borders.  The frame's position is measured from the outside edge of the
  443. external border.
  444.  
  445.    Use the `-ib N' option to specify an internal border N pixels wide.
  446. The default is 1.  Use `-bw N' to specify the width of the external
  447. border (though the window manager may not pay attention to what you
  448. specify).  The default width of the external border is 2.
  449.  
  450. 
  451. File: emacs,  Node: Icons X,  Next: Resources X,  Prev: Borders X,  Up: Command Arguments
  452.  
  453. Icons
  454. =====
  455.  
  456.    Most window managers allow the user to "iconify" a frame, removing
  457. it from sight, and leaving a small, distinctive "icon" window in its
  458. place.  Clicking on the icon window makes the frame itself appear again.
  459. If you have many clients running at once, you can avoid cluttering up
  460. the screen by iconifying most of the clients.
  461.  
  462. `-i'
  463. `-itype'
  464.      Use a picture of a gnu as the Emacs icon.
  465.  
  466. `-iconic'
  467.      Start Emacs in iconified state.
  468.  
  469.    The `-i' and `-itype' option tells Emacs to use an icon window
  470. containing a picture of the GNU gnu.  If omitted, Emacs lets the window
  471. manager choose what sort of icon to use--usually just a small rectangle
  472. containing the frame's title.
  473.  
  474.    The `-iconic' option tells Emacs to begin running as an icon, rather
  475. than opening a frame right away.  In this situation, the icon window
  476. provides only indication that Emacs has started; the usual text frame
  477. doesn't appear until you deiconify it.
  478.  
  479. 
  480. File: emacs,  Node: Resources X,  Prev: Icons X,  Up: Command Arguments
  481.  
  482. X Resources
  483. ===========
  484.  
  485.    Programs running under the X Window System organize their user
  486. options under a hierarchy of classes and resources.  You can specify
  487. default values for these options in your X resources file, usually named
  488. `~/.Xdefaults'.
  489.  
  490.    Each line in the file specifies a value for one option or for a
  491. collection of related options, for one program or for several programs
  492. (optionally even for all programs).
  493.  
  494.    Programs define named resources with particular meanings.  They also
  495. define how to group resources into named classes.  For instance, in
  496. Emacs, the `internalBorder' resource controls the width of the internal
  497. border, and the `borderWidth' resource controls the width of the
  498. external border.  Both of these resources are part of the `BorderWidth'
  499. class.  Case distinctions are significant in these names.
  500.  
  501.    In `~/.Xdefaults', you can specify a value for a single resource on
  502. one line, like this:
  503.  
  504.      emacs.borderWidth: 2
  505.  
  506. Or you can use a class name to specify the same value for all resources
  507. in that class.  Here's an example:
  508.  
  509.      emacs.BorderWidth: 2
  510.  
  511.    If you specify a value for a class, it becomes the default for all
  512. resources in that class.  You can specify values for individual
  513. resources as well; these override the class value, for those particular
  514. resources.  Thus, this example specifies 2 as the default width for all
  515. borders, but overrides this value with 4 for the external border:
  516.  
  517.      emacs.Borderwidth: 2
  518.      emacs.borderwidth: 4
  519.  
  520.    The order in which the lines appear in the file does not matter.
  521. Also, command-line options always override the X resources file.
  522.  
  523.    The string `emacs' in the examples above is also a resource name.
  524. It actually represents the name of the executable file that you invoke
  525. to run Emacs.  If Emacs is installed under a different name, it looks
  526. for resources under that name instead of `emacs'.
  527.  
  528.    When Emacs creates a new frame, it may or may not have a specified
  529. title.  The frame title, if specified, appears in window decorations and
  530. icons as the name of the frame.  It is also used (instead of the Emacs
  531. executable's name) to look up all the resources for that frame.  The
  532. option `-name' specifies a frame title for the initial frame.
  533. Subsequent frames normally have no frame title, but Lisp programs can
  534. specify a title when they create frames.
  535.  
  536. `-name NAME'
  537.      Use NAME as the title of the initial frame.
  538.  
  539.    For consistency, `-name' also specifies the name to use for other
  540. resource values that do not belong to any particular frame.
  541.  
  542.    The resources that name Emacs invocations also belong to a class; its
  543. name is `Emacs'.  To specify options for all Emacs jobs, no matter what
  544. name is used to run them, write `Emacs' instead of `emacs', like this:
  545.  
  546.      Emacs.BorderWidth: 2
  547.      Emacs.borderWidth: 4
  548.  
  549.    You can specify a string of additional resource values for Emacs to
  550. use with the command line option `-xrm RESOURCES'.  The text RESOURCES
  551. should have the same format that you would use inside a file of X
  552. resources.  To include multiple resource specifications in DATA, put a
  553. newline between them, just as you would in a file.  You can also use
  554. `#include "FILENAME"' to include a file full of resource
  555. specifications.  Resource values specified with `-xrm' take precedence
  556. over all other resource specifications.
  557.  
  558.    The following table lists the resource names that designate options
  559. for Emacs, each with the class that it belongs to:
  560.  
  561. `background' (class `Background')
  562.      Background color name.
  563.  
  564. `bitmapIcon' (class `BitmapIcon')
  565.      Use a bitmap icon (a picture of a gnu) if `on', let the window
  566.      manager choose an icon if `off'.
  567.  
  568. `borderColor' (class `BorderColor')
  569.      Color name for the external border.
  570.  
  571. `borderWidth' (class `BorderWidth')
  572.      Width in pixels of the external border.
  573.  
  574. `cursorColor' (class `Foreground')
  575.      Color name for text cursor (point).
  576.  
  577. `font' (class `Font')
  578.      Font name for text.
  579.  
  580. `foreground' (class `Foreground')
  581.      Color name for text.
  582.  
  583. `geometry' (class `Geometry')
  584.      Window size and position.  Be careful not to specify this resource
  585.      as `emacs*geometry', because that may affect individual menus as
  586.      well as the Emacs frame itself.
  587.  
  588. `iconName' (class `Title')
  589.      Name to display in the icon.
  590.  
  591. `internalBorder' (class `BorderWidth')
  592.      Width in pixels of the internal border.
  593.  
  594. `paneFont' (class `Font')
  595.      Font name for menu pane titles, in non-toolkit versions of Emacs.
  596.  
  597. `pointerColor' (class `Foreground')
  598.      Color of the mouse cursor.
  599.  
  600. `reverseVideo' (class `ReverseVideo')
  601.      Switch foreground and background default colors if `on', use
  602.      colors as specified if `off'.
  603.  
  604. `selectionFont' (class `Font')
  605.      Font name for pop-up menu items, in non-toolkit versions of Emacs.
  606.      (Toolkit versions, use `emacs.shell.menu.popup.font' instead--see
  607.      below.)
  608.  
  609. `title' (class `Title')
  610.      Name to display in the title bar of the initial Emacs frame.
  611.  
  612.    If the Emacs installed at your site was built to use an X toolkit,
  613. then the menu bar is a separate widget and has its own resources.  Their
  614. names start with `shell.pane.menubar'; specify them like this:
  615.  
  616.      Emacs.shell.pane.menubar.RESOURCE:  VALUE
  617.  
  618. For example, to specify the font `8x16' for the menu bar items, write
  619. this:
  620.  
  621.      Emacs.shell.pane.menubar.font:  8x16
  622.  
  623. or, for short, like this:
  624.  
  625.      Emacs*menubar.font:  8x16
  626.  
  627.    Resources for toolkit popup menus have `shell.menu.popup', in like
  628. fashion.  For example, to specify the font `8x16' for the menu bar
  629. items, write this:
  630.  
  631.      Emacs.shell.menu.popup.font:    8x16
  632.  
  633.    Here is a list of the specific resources for menu bars and popup
  634. menus:
  635.  
  636. `font'
  637.      Font for menu item text.
  638.  
  639. `foreground'
  640.      Color of the foreground.
  641.  
  642. `background'
  643.      Color of the background.
  644.  
  645. `buttonForeground'
  646.      In the menu bar, the color of the foreground for a selected item.
  647.  
  648. `horizontalSpacing'
  649.      Horizontal spacing in pixels between items.  Default is 3.
  650.  
  651. `verticalSpacing'
  652.      Vertical spacing in pixels between items.  Default is 1.
  653.  
  654. `arrowSpacing'
  655.      Horizontal spacing between the arrow (which indicates a submenu)
  656.      and the associated text.  Default is 10.
  657.  
  658. `shadowThickness'
  659.      Thickness of shadow line around the widget.
  660.  
  661.    Here are resources for controlling the appearance of particular faces
  662. (*note Faces::.):
  663.  
  664. `FACE.attributeFont'
  665.      Font for face FACE.
  666.  
  667. `FACE.attributeForeground'
  668.      Foreground color for face FACE.
  669.  
  670. `FACE.attributeBackground'
  671.      Background color for face FACE.
  672.  
  673. `FACE.attributeUnderline'
  674.      Underline flag for face FACE.
  675.  
  676. 
  677. File: emacs,  Node: Antinews,  Next: MS-DOS,  Prev: Command Arguments,  Up: Top
  678.  
  679. Emacs 18 Antinews
  680. *****************
  681.  
  682.    For those users who live backwards in time, here is information about
  683. downgrading to Emacs version 18.  We hope you will enjoy the greater
  684. simplicity that results from the absence of many Emacs 19 features.
  685.  
  686. Packages Removed
  687. ================
  688.  
  689.    To reduce the size of the distribution, we have eliminated numerous
  690. packages including GNUS, VC (version control), Hexl (for editing binary
  691. files), Edebug, Emerge, Mpuz, Spook, and Gomoku.
  692.  
  693.    Major modes removed in Emacs 18 include C++ mode, Awk mode, Icon
  694. mode, Asm mode, Makefile mode, Perl mode and SGML mode.
  695.  
  696.    The function `enable-flow-control' does not exist; see the file
  697. `PROBLEMS' in the Emacs distribution for directions for coping with
  698. flow control.
  699.  
  700.    The Calendar feature provided is a very simple one.  All it can do is
  701. display three months, by default centered around the current month.  If
  702. you give it a numeric argument, that specifies the number of months
  703. forward or back.
  704.  
  705. Fundamental Changes
  706. ===================
  707.  
  708.    Auto save and garbage collection happen only while you are typing,
  709. never while you are idle.  This is to make them more like affectionate
  710. pets.  Think of them as cats that like to sit on your terminal only
  711. when you are working there.
  712.  
  713.    Transient Mark mode and Line Number mode are absent in Emacs 18.  If
  714. you are an Emacs user, you are smart enough to keep track of the mark
  715. in your head, and you don't need line numbers because you can search
  716. for precisely the text you want.
  717.  
  718.    There are no menu bars or scroll bars; no faces, text properties or
  719. overlays.  You can't use `Mouse-2' to select files or objects referred
  720. to in the buffer.
  721.  
  722.    There are no minibuffer history commands.
  723.  
  724.    There is only one frame, so the Emacs 19 `C-x 5' command series is
  725. meaningless.  Instead, `C-x 5' in Emacs 18 splits the selected window
  726. horizontally (like `C-x 3' in Emacs 19).
  727.  
  728.    Another simplification in Emacs 18 is that all input events are
  729. characters.  Function keys and arrow keys are represented as sequences
  730. of characters; the terminal-specific Emacs Lisp file for your terminal
  731. is responsible for defining them.  Mouse buttons are defined by a
  732. special keymap, `mouse-map'.  See the file `x-mouse.el' for how to bind
  733. mouse clicks.
  734.  
  735.    There is no support for European character sets such as ISO Latin-1.
  736. Character codes 128 and above always display using `\NNN' notation.
  737. For codes 0 through 31, you can choose between `\NNN' and `^C' by
  738. setting the variable `ctl-arrow'; but that is the only thing you can
  739. specify about how character codes should display.
  740.  
  741.    You can't refer to files on other machines using special "magic"
  742. file names.  Instead, you must use the `ftp' library with commands such
  743. as `M-x ftp-find-file' and `M-x ftp-write-file'.  Since automatic
  744. uncompression also uses magic file names, that too is gone.
  745.  
  746.    The character for terminating an incremental search is now ESC, not
  747. RET as in Emacs 19.  If you type RET, that searches for a newline;
  748. thus, you can insert a newline in the search string just as you would
  749. insert it in the text.
  750.  
  751. Key Binding Changes
  752. ===================
  753.  
  754.    The key for `backward-paragraph' is now `M-['.  The key for
  755. `forward-paragraph' is now `M-]'.
  756.  
  757.    The command `repeat-complex-command' is now on `C-x ESC'.
  758.  
  759.    The register commands have different key bindings:
  760.  
  761. `C-x /'
  762.      `point-to-register'
  763.  
  764. `C-x j'
  765.      `jump-to-register'
  766.  
  767. `C-x x'
  768.      `copy-to-register'
  769.  
  770. `C-x g'
  771.      `insert-register'
  772.  
  773. `C-x r'
  774.      `copy-rectangle-to-register'
  775.  
  776.    The narrowing commands have also been moved:
  777.  
  778. `C-x n'
  779.      `narrow-to-region'
  780.  
  781. `C-x p'
  782.      `narrow-to-page'
  783.  
  784. `C-x w'
  785.      `widen'
  786.  
  787.    And the abbrev commands as well:
  788.  
  789. `C-x C-a'
  790.      `add-mode-abbrev'
  791.  
  792. `C-x +'
  793.      `add-global-abbrev'
  794.  
  795. `C-x C-h'
  796.      `inverse-add-mode-abbrev'
  797.  
  798. `C-x -'
  799.      `inverse-add-global-abbrev'
  800.  
  801. `C-x `'
  802.      `expand-abbrev'
  803.  
  804.    There are no key bindings for the rectangle commands.
  805.  
  806.    `C-x a' now runs the command `append-to-buffer'.
  807.  
  808.    The key bindings `C-x 4 r' and `C-x 4 C-o' do not exist.
  809.  
  810.    The help commands `C-h C-f', `C-h C-k' and `C-h p' do not exist in
  811. Emacs 18.
  812.  
  813.    The command `C-M-l' (`reposition-window') is absent.  Likewise
  814. `C-M-r' (`isearch-backward-regexp').
  815.  
  816.    The "two column" commands starting with `C-x 6' don't exist in Emacs
  817. 18.
  818.  
  819.    The TeX mode bindings of `C-c {' and `C-c }' have been moved to
  820. `M-{' and `M-}'.  (These commands are `up-list' and
  821. `tex-insert-braces'; they are the TeX equivalents of `M-(' and `M-)'.)
  822.  
  823. Incremental Search Changes
  824. ==========================
  825.  
  826.    As mentioned above, the character for terminating an incremental
  827. search is now ESC, not RET as in Emacs 19.  If you type RET, that
  828. searches for a newline; thus, you can insert a newline in the search
  829. string just as you would insert it in the text.
  830.  
  831.    There is no ring of previous search strings in Emacs 18.  You can
  832. reuse the most recent search string, but that's all.
  833.  
  834.    If `case-fold-search' is non-`nil', then incremental search is
  835. *always* case-insensitive.  Typing an upper-case letter in the search
  836. string has no effect on this.
  837.  
  838.    Spaces in the incremental search string match only spaces.
  839.  
  840.    The meanings of the special search characters are no longer
  841. controlled by a keymap.  Instead, particular variables named
  842. `search-...-char' specify the character that should have a particular
  843. function.  For example, `C-s' repeats the search because the value of
  844. `search-repeat-char' is `?\C-s'.
  845.  
  846. Editing Command Changes
  847. =======================
  848.  
  849.    `C-n' (`next-line') does not check the variable
  850. `next-line-add-newlines'.
  851.  
  852.    The sexp commands such as `C-M-f' no longer know anything about
  853. comments, in modes such as Lisp mode where the end of a comment is the
  854. end of the line.  They treat the text inside a comment as if it were
  855. actual code.  If comments containing unbalanced parentheses cause
  856. trouble, you can use the commands `C-M-n' and `C-M-p', which do ignore
  857. comments.
  858.  
  859.    You can't store file names in registers, and there are no frame
  860. configurations at all.  The command `M-x string-rectangle' does not
  861. exist either.
  862.  
  863.    The undo command in Emacs 18 is not careful about where to leave
  864. point when you undo a deletion.  It ends up at one end or the other of
  865. the text just undeleted.  You must be on the lookout for this, and move
  866. point appropriately.
  867.  
  868.    Kill commands do nothing useful in read-only buffers.  They just
  869. beep.
  870.  
  871.    `M-z C' in Emacs 18 kills up to but not including the first
  872. occurrence of C.  If C does not occur in the buffer after point, `M-z'
  873. kills the whole rest of the buffer.
  874.  
  875.    The function `erase-buffer' is not a command in Emacs 18.  You can
  876. call it from a Lisp program, but not interactively.  The motivation for
  877. this is to protect you from accidentally deleting (not killing) the
  878. entire text of a buffer that you want to keep.  With subsequent changes
  879. in even earlier Emacs versions (such as version 18.54), you might be
  880. unable to undo the `erase-buffer'.
  881.  
  882.    `M-x fill-nonuniform-paragraphs' and Adaptive Fill mode do not exist.
  883.  
  884. Other Brief Notes
  885. =================
  886.  
  887.    The mode line displays `%%' for all read-only buffers, whether
  888. modified or not.
  889.  
  890.    The command `resize-minibuffer-mode' has been removed.  If you want
  891. to change the size of the minibuffer, do it by hand.
  892.  
  893.    Outline mode exists only as a major mode, not as a minor mode.
  894.  
  895.    `M-!' (`shell-command') always runs the command synchronously, even
  896. if the command ends with `&'.
  897.  
  898.    Emacs 18 has no special mode for change log files.  It is a good idea
  899. to use Indented Text mode, and specify 8 as the value of the variable
  900. `left-margin'.
  901.  
  902.    The command `M-x comment-region' does not exist.  The command `M-x
  903. super-apropos' does not exist.
  904.  
  905.    `C-x q' (`kbd-macro-query') now uses `C-d' to terminate all
  906. iterations of the keyboard macro, rather than ESC.
  907.  
  908.    The `M-x setenv' command is missing in Emacs 18.
  909.  
  910.    `M-$' now uses the Unix spell program instead of the GNU program
  911. Ispell.  If the word around point is a misspelling, it asks you for a
  912. replacement.
  913.  
  914.    To check spelling of larger units of text, use `M-x spell-region' or
  915. `M-x spell-buffer'.  These commands check all words in the specified
  916. piece of text.  For each word that is not correct, they ask you to
  917. specify a replacement, and then replace each occurrence.
  918.  
  919.    `M-x gdb' still exists in Emacs 18.  `M-x dbx' exists, but is
  920. somewhat different (use `C-h m' to find the details).  `M-x sdb' does
  921. not exist at all, but who wants to use SDB?
  922.  
  923.    In Buffer Menu mode, the commands `%' and `C-o' don't work in Emacs
  924. 18.  The `v' command has been eliminated and merged with the `q'
  925. command, which now exits the buffer menu, displaying all the buffers
  926. that you have marked.
  927.  
  928.    The View commands (such as `M-x view-buffer' and `M-x view-file')
  929. now use recursive edits.  When you exit viewing, the recursive edit
  930. returns to its caller.
  931.  
  932.    Emacs 18, like most programs, interprets command line options only
  933. when it is started-not later on.
  934.  
  935.    The variable to control whether files can set local variables is
  936. called `inhibit-local-variables'.  A non-`nil' value means ask the user
  937. before obeying any local variables lists.
  938.  
  939.    The user option for controlling use of the `eval' local variable is
  940. now called `inhibit-local-eval'.  A non-`nil' value means to ask the
  941. user before obeying any `eval' local variable.
  942.  
  943. File Handling Changes
  944. =====================
  945.  
  946.    As mentioned above, you can't refer to files on other machines using
  947. special "magic" file names.  Instead, you must use the `ftp' library
  948. with commands such as `M-x ftp-find-file' and `M-x ftp-write-file'.
  949.  
  950.    When you run `M-x revert-buffer' with no numeric argument, if the
  951. buffer has an auto save file more recent that the visited file,
  952. `revert-buffer' asks whether to revert from the auto save file instead.
  953.  
  954.    When `C-x s' (`save-some-buffers') offers to save each buffer, you
  955. have only two choices: save it, or don't save it.
  956.  
  957.    `M-x recover-file' turns off Auto Save mode in the current buffer.
  958. To turn it on again, use `M-x auto-save-mode'.
  959.  
  960.    The command `M-x rename-uniquely' does not exist; instead, use `M-x
  961. rename-buffer' and try various names until you find one that isn't in
  962. use.  Completion can make this easier.
  963.  
  964.    The directory name abbreviation feature is gone in Emacs 18.
  965.  
  966.    Emacs 18 has no idea of file truenames, and does not try to detect
  967. when you visit a file via a symbolic link.  You should check manually
  968. when you visit a file, so as to edit it in the directory where it is
  969. actually stored.  This way you can make sure that backup files and
  970. change log entries go in the proper directory.
  971.  
  972.    `M-x compare-windows' ignores any numeric argument and always
  973. considers case and whitespace differences significant.  As for the
  974. other ways of comparing files, `M-x diff' and `M-x diff-backup', they
  975. don't exist at all.
  976.  
  977. Mail Changes
  978. ============
  979.  
  980.    `%' is now a word-component character in Mail mode.  This is to be
  981. compatible with Text mode.
  982.  
  983.    The variable `mail-signature' is not meaningful; if you wish to
  984. insert your signature in a mail message, you must type `C-c C-w'.
  985.  
  986.    Mail aliases expand only when you send the message--never when you
  987. type them in.
  988.  
  989.    Rmail now gets new mail into your primary mail file from `~/mbox' as
  990. well as from your system inbox file.  This is handy if you occasionally
  991. check your newest mail with the `mail' program; whatever you have
  992. looked at and saved with `mail' will be brought into Rmail the next
  993. time you run Rmail.
  994.  
  995.    The `e' command is now "expunge", just like `x'.  To edit the
  996. current message, type `w', which works in Emacs 19 as well.  If you
  997. type `e' meaning to edit, and it expunges instead--well, you shouldn't
  998. have deleted those messages if you still wanted them.
  999.  
  1000.    The Rmail summary buffer is now much simpler.  Only a few special
  1001. commands are available there: `n', `p', and `j' for motion, `d' and `u'
  1002. for deletion, and SPC and DEL for scrolling the message.  To do
  1003. anything else, you must go to the Rmail buffer.  Also, changes in the
  1004. Rmail buffer don't update the summary; to do that, you must make a new
  1005. summary.
  1006.  
  1007.    The Rmail command `rmail-resend' (accessible via `f' with a numeric
  1008. argument in Emacs 19) does not exist in Emacs 18.  Neither does
  1009. `rmail-retry-failure' (`M-m' in Emacs 19).
  1010.  
  1011.    The Rmail sorting features have been removed, so you can be sure the
  1012. order you see is the order that the messages arrived.
  1013.  
  1014.    The `<' and `b' commands have been removed in Emacs 18.  Likewise
  1015. `C-M-t' (`rmail-summarize-by-topic') and `M-x unrmail'.  Rmail in Emacs
  1016. 18 is so good, that we can't imagine anyone who has tried it would ever
  1017. wish to use another mail reader.
  1018.  
  1019.    You must use the `o' command for output to a Rmail file, and the
  1020. `C-o' for output to a file in system mailbox format.  The default
  1021. output file for `o' is now always the last file that you used with `o'.
  1022. The variable `rmail-output-file-alist' has no special meaning.
  1023.  
  1024.    Emacs 18 Rmail does not know anything about Content Length fields in
  1025. messages.
  1026.  
  1027. C Mode Changes
  1028. ==============
  1029.  
  1030.    In C mode, the keys `M-a' and `M-e' now have their usual meanings:
  1031. motion by sentences.  This is useful while editing the comments in a C
  1032. program, but not useful for editing code.  We hope this will encourage
  1033. you to write lots of comments.
  1034.  
  1035.    The commands `M-x c-up-conditional' and `M-x c-backslash-region' have
  1036. been removed entirely in Emacs 18.
  1037.  
  1038. Compilation Changes
  1039. ===================
  1040.  
  1041.    `M-x compile' now has a much simpler and faster parser for error
  1042. messages.  However, it understands fewer different formats for error
  1043. messages, and is not as easy to customize.
  1044.  
  1045.    There is no special mode for compilation buffers.  When you select
  1046. the compilation buffer itself, it is just ordinary text.
  1047.  
  1048.    Speaking of selecting the compilation buffer, you do need to do that
  1049. from time to time to see whether the compilation has finished, because
  1050. Emacs 18 does not display `Compiling' in the mode line to tell you the
  1051. compilation is still going.
  1052.  
  1053. Shell Mode Changes
  1054. ==================
  1055.  
  1056.    Shell mode in Emacs 18 does nothing special for the keys TAB, `M-?',
  1057. `C-d'.  The commands `M-x dirs' and `M-x send-invisible' are also gone.
  1058.  
  1059.    The history commands `M-p' and so on are not available either;
  1060. instead, use `C-c C-y' (`copy-last-shell-input').  This copies the
  1061. previous bunch of shell input, and inserts it into the buffer before
  1062. point.  No final newline is inserted, and the input copied is not
  1063. resubmitted until you type RET.
  1064.  
  1065.    Use `C-c C-d' to send an "end of file" to the shell process.
  1066.  
  1067. Dired Changes
  1068. =============
  1069.  
  1070.    For simplicity, Dired in Emacs 18 supports just one kind of mark: the
  1071. deletion flag, `D'.  The Emacs 19 Dired commands for flagging files do
  1072. work in Emacs 18, but all the other mark-related commands do not.
  1073.  
  1074.    The Dired subdirectory commands don't exist in Emacs 18.  A Dired
  1075. buffer can contain only one directory.  In particular, this means that
  1076. the variable `dired-listing-switches' must not contain the `R' option.
  1077. (The `F' option is also not allowed.)
  1078.  
  1079.    The commands for using `find' with Dired have been removed for
  1080. simplicity, also.
  1081.  
  1082.    Emacs 18 Dired provides the following commands for manipulating files
  1083. immediately, and no others.  All of these commands apply to the file
  1084. listed on the current line.
  1085.  
  1086. `c'
  1087.      Copies the file described on the current line.  You must supply a
  1088.      file name to copy to, using the minibuffer.
  1089.  
  1090. `f'
  1091.      Visits the file described on the current line.  It is just like
  1092.      typing `C-x C-f' and supplying that file name.  If the file on
  1093.      this line is a subdirectory, `f' actually causes Dired to be
  1094.      invoked on that subdirectory.
  1095.  
  1096. `G'
  1097.      Change the group of the file described on the current line.
  1098.  
  1099. `M'
  1100.      Change the file mode of the file described on the current line.
  1101.  
  1102. `o'
  1103.      Like `f', but uses another window to display the file's buffer.
  1104.      The Dired buffer remains visible in the first window.  This is
  1105.      like using `C-x 4 C-f' to visit the file.
  1106.  
  1107. `O'
  1108.      Change the owner of the file described on the current line.  (On
  1109.      most systems, you must be a superuser to do this.)
  1110.  
  1111. `r'
  1112.      Renames the file described on the current line.  You must supply a
  1113.      file name to rename to, using the minibuffer.
  1114.  
  1115. `v'
  1116.      Views the file described on this line using `M-x view-file'.
  1117.      Viewing a file is like visiting it, but is slanted toward moving
  1118.      around in the file conveniently and does not allow changing the
  1119.      file.
  1120.  
  1121. 
  1122. File: emacs,  Node: MS-DOS,  Next: Manifesto,  Prev: Antinews,  Up: Top
  1123.  
  1124. MS-DOS Issues
  1125. *************
  1126.  
  1127.    This section briefly describes the peculiarities of using Emacs under
  1128. the MS-DOS "operating system" (also known as "MS-DOG").
  1129.  
  1130.    MS-DOS normally uses a backslash, `\', to separate name units within
  1131. a file name, instead of the slash used on other systems.  Emacs on
  1132. MS-DOS permits use of either slash or backslash.
  1133.  
  1134.    On MS-DOS, file names are case-insensitive and limited to eight
  1135. characters, plus optionally a period and three more characters.  Emacs
  1136. does not know about this limitation; it is up to you to specify valid
  1137. file names.  Excess characters before or after the period are generally
  1138. ignored.
  1139.  
  1140.    Display on MS-DOS in Emacs 19.26 does not support menus or multiple
  1141. fonts.  Support for multiple faces that specify different colors should
  1142. be added in version 19.27.
  1143.  
  1144.    Emacs on MS-DOS does support a mouse (on the default terminal only).
  1145. The mouse commands work as documented, aside from those that try to use
  1146. menus.  *Note Mouse Commands::.
  1147.  
  1148.    Because MS-DOS is a single-process "operating system", asynchronous
  1149. subprocesses are not available.  In particular, Shell mode and its
  1150. derivatives do not work.  Compilation under Emacs with `M-x compile'
  1151. does work, but the compiler runs synchronously; you cannot do any more
  1152. editing until the compilation finishes.
  1153.  
  1154.    When you run a subprocess synchronously on MS-DOS, make sure the
  1155. program terminates and does not try to read keyboard input.  If the
  1156. program does not terminate on its own, you will be unable to terminate
  1157. it, because MS-DOS provides no general way to terminate a process.
  1158.  
  1159.